import { AddNode, IntNode, VectorNode } from ".";
import { Token } from "../ch8";

let plus = new Token(Token.PLUS,"+");
let one = new Token(Token.INT,"1");
let two = new Token(Token.INT,"2");

let root = new AddNode(
    new IntNode(one),
    plus,
    new IntNode(two)
)

let list = new VectorNode(
    null,
    [new IntNode(one),new IntNode(two)]
)

console.log("1+2----",root.toStringTree())
console.log("list---",list.toStringTree())